package com.hqyj.pojo;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.SimpleTimeZone;

public class Signin {
    private Integer inId;

    private Integer eId;

    private Date time;

    private String state;

    public Integer getInId() {
        return inId;
    }

    public void setInId(Integer inId) {
        this.inId = inId;
    }

    public Integer geteId() {
        return eId;
    }

    public void seteId(Integer eId) {
        this.eId = eId;
    }

    public String getTime() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        if(this.time!=null){
            return sdf.format(this.time);
        }
        return "";
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Signin{" +
                "inId=" + inId +
                ", eId=" + eId +
                ", time=" + time +
                ", state='" + state + '\'' +
                '}';
    }
}